import request from '@/utils/request'

// 查询关联新闻列表
export function listRelationalNews(query) {
  return request({
    url: '/kiku/relationalNews/list',
    method: 'get',
    params: query
  })
}

// 查询关联新闻详细
export function getRelationalNews(id) {
  return request({
    url: '/kiku/relationalNews/' + id,
    method: 'get'
  })
}

// 新增关联新闻
export function addRelationalNews(data) {
  return request({
    url: '/kiku/relationalNews',
    method: 'post',
    data: data
  })
}

// 修改关联新闻
export function updateRelationalNews(data) {
  return request({
    url: '/kiku/relationalNews',
    method: 'put',
    data: data
  })
}

// 删除关联新闻
export function delRelationalNews(id) {
  return request({
    url: '/kiku/relationalNews/' + id,
    method: 'delete'
  })
}
